home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 901 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.8 KB

  1. Date: Wed, 19 Jan 1994 18:00:17 -0500
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: shenson@nyx10.cs.du.edu
  4.         mint@terminator.rs.itd.umich.edu
  5. In-Reply-To: Stephen Henson's message of Wed, 19 Jan 94 15:30:33 MST <9401192230.AA10191@nyx10.cs.du.edu>
  6. Subject: dreaddir/fxattr
  7.  
  8. >I'm still not sure about this. The delay of readdir/stat is caused by the
  9. >multiple file lookups (e.g. several directory searches if it's a full path).
  10. >Things which don't use the new syscall wont win. Also is it intended that the
  11. >new library would use this syscall to reduce the work in certain situations
  12. >(e.g. automatically with readdir).
  13. >    Since this involves messing with the kernel, why not use a cookie 
  14. >cache which is then backwards compatible and speeds up *all* multiple 
  15. >operations on the same file (the lib is full of these) instead of just
  16. >optimising the readdir/xattr case.
  17. >    I could do this with an LRU cache in Minixfs lookup/readdir but it's
  18. >best in the kernel to speed up all filesystems and to have path as opposed to
  19. >directory dependency.
  20.  
  21. I agree that this is the best solution.  If we implement a new system
  22. call we will still need to retain backwards compatibility in the
  23. library (try new readdir call, if it is not available then use
  24. readdir/getxattr) which will only make the syscall overhead greater in
  25. many instances and complicates programming for those using the OS
  26. interface directly without an intervening library interface.  Adding a
  27. write-through directory cache in the kernel solves the original
  28. problem without introducing new ones.
  29.  
  30. Cheers,
  31. entropy
  32.  
  33. --
  34. entropy -- it's not just a good idea, it's the second law.
  35. Personal mail:      entropy@gnu.ai.mit.edu
  36. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  37. "what do you have against octal?" -jrb
  38.  
  39.